package tom_io_nio.bio;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class BioClient2 {

    public static void main(String[] args){

        try {
            Socket socket = new Socket("127.0.0.1" ,8080);
            OutputStream os = socket.getOutputStream();
            os.write("libofei".getBytes());
            os.close();
            socket.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
